﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Input_guomin : MonoBehaviour
{

    public static string guomin;

    // Use this for initialization
    void Start()
    {
        transform.GetComponent<InputField>().onValueChanged.AddListener(Changed_Value);
        transform.GetComponent<InputField>().onEndEdit.AddListener(End_Value);
    }

    // Update is called once per frame
    void Update()
    {

    }

    public void Changed_Value(string inp)
    {
        print("正在输入" + inp);
    }

    public void End_Value(string inp)
    {
        print("输入完成" + inp);
        guomin = inp;
    }
}
